//
//  TaskWithGetAd.m
//  DuBai
//
//  Created by darktm on 14-3-1.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import "TaskWithGetHomeAd.h"

#import "AdObject.h"

@implementation TaskWithGetHomeAd

-(void)prepare{
    
    [self startAsyncWithParams:nil withMethod:@"GEP" withURL:[Configure getHomeAd]];
}
-(id)parese{
    
    NSMutableArray *ret = [NSMutableArray array];
    
    for (NSDictionary *dic in self.rcvData) {
        AdObject *obj = [[AdObject alloc] initWithReflectData:dic];
        [ret addObject:obj];
    }
    
    return ret;
}

@end
